﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShuJuGj.Entity
{
    public class UnFormatFile
    {
        public string WS02_01_039_001 { set; get; }
        public string WS02_01_906_01 { set; get; }
        public string WS99_00_930_08 { set; get; }
        public string WS01_00_018_01 { set; get; }
        public string WS99_99_034_46 { set; get; }
        public string WS04_50_133_01 { set; get; }
        public string WS08_10_912_06 { set; get; }
        public string CT08_10_912_06 { set; get; }
        public string WS08_10_052_28 { set; get; }
        public string WS08_10_052_29 { set; get; }
        public string WS08_10_052_03 { set; get; }
        public string CT08_10_052_03 { set; get; }
        public string WS99_99_900_96 { set; get; }
        public string CT99_99_900_96 { set; get; }
        public string WS99_99_900_97 { set; get; }
        public string BASE64STR { set; get; }

        public string GetInXml()
        {
            string inXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><messages xmlns=\"http://www.neusoft.com/hit/rhin\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.neusoft.com/hit/rhin file:///e:/return_message.xsd\"><switchset><visitor><sourceorgan>3301090000000000000000</sourceorgan><sourcedomain>3301090082</sourcedomain></visitor><serviceinf><servicecode>FJGHSJSCCJ:FJGHSJSCFW</servicecode></serviceinf><provider><targetorgan/><targetdomain/></provider><route/><process/><switchmessage><messagecode></messagecode><messagetext/></switchmessage></switchset><business><standardcode></standardcode><returnmessage><retcode></retcode><rettext/></returnmessage><returnset><rettotal>1</rettotal><retpaging>0</retpaging><retpageindex/><retpageset/></returnset><datacompress/><businessdata><datasets><setcode></setcode><settype></settype><setdetails>{0}</setdetails><base64>{1}</base64></datasets></businessdata></business><extendset/></messages>";
            string dataXml =
                string.Format("<WS02_01_039_001>{0}</WS02_01_039_001><WS02_01_906_01>{1}</WS02_01_906_01><WS99_00_930_08>{2}</WS99_00_930_08><WS01_00_018_01>{3}</WS01_00_018_01><WS99_99_034_46>{4}</WS99_99_034_46><WS04_50_133_01>{5}</WS04_50_133_01><WS08_10_912_06>{6}</WS08_10_912_06><CT08_10_912_06>{7}</CT08_10_912_06><WS08_10_052_28>{8}</WS08_10_052_28><WS08_10_052_29>{9}</WS08_10_052_29><WS08_10_052_03>{10}</WS08_10_052_03><CT08_10_052_03>{11}</CT08_10_052_03><WS99_99_900_96>{12}</WS99_99_900_96><CT99_99_900_96>{13}</CT99_99_900_96><WS99_99_900_97>{14}</WS99_99_900_97>",
                    WS02_01_039_001,
                    WS02_01_906_01,
                    WS99_00_930_08,
                    WS01_00_018_01,
                    WS99_99_034_46,
                    WS04_50_133_01,
                    WS08_10_912_06,
                    CT08_10_912_06,
                    WS08_10_052_28,
                    WS08_10_052_29,
                    WS08_10_052_03,
                    CT08_10_052_03,
                    WS99_99_900_96,
                    CT99_99_900_96,
                    WS99_99_900_97);
            return string.Format(inXml, dataXml, BASE64STR);
        }
    }
}